#include "Triangle.hpp"

Triangle::Triangle(){}

Triangle::Triangle(int x1, int y1, int x2, int y2, int x3, int y3) {
	this->x1Top = x1; this->y1Top = y1;
	this->x2Left = x2; this->y2Left = y2;
	this->x3Right = x3; this->y3Right = y3;
}

Triangle::~Triangle(){}

int Triangle::getX1Top() {
	return x1Top;
}

int Triangle::getY1Top() {
	return y1Top;
}

int Triangle::getX2Left() {
	return x2Left;
}

int Triangle::getY2Left() {
	return y2Left;
}

int Triangle::getX3Right() {
	return x3Right;
}

int Triangle::getY3Right() {
	return y3Right;
}

bool Triangle::isRightOf(int xStart, int yStart, int xEnd, int yEnd, int x, int y) {
	return ((xStart*(yEnd - y) - (yStart*(xEnd - x)) + (xEnd * y) - (yEnd * x))<0);
}

bool Triangle::isTriangle() {
	return true;
}
